package com.wf.it.common.api.hystrix;

import com.wf.it.common.api.UserService;
import com.wf.it.common.entity.User;
import com.wf.it.common.vo.Result;
import org.springframework.stereotype.Service;

@Service
public class UserServiceHystrixImpl implements UserService {
    @Override
    public Result<User> userLogin(String loginName, String loginPwd) {
        return new Result(600,null,"网络故障,请稍后操作");
    }

    @Override
    public Result findByLoginName(String loginName) {
        return new Result(600,null,"网络故障,请稍后查询");
    }

    @Override
    public Result reg(User user) {
        return new Result(600,null,"网络故障,注册未成功，请稍后操作");
    }

    @Override
    public Result changeBalance(String userIdCard, int money) {
        return new Result(600,null,"网络故障,余额调整不成功，请稍后操作");
    }
}
